<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="/common/commonTag.jsp" %>
<%@include file="/common/commonJS.jsp" %>
<!DOCTYPE html>
<html>
<head>
	<style>
	/* Base class */
.bs-docs-example {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
  *padding-top: 19px;
  background-color: #fff;
  border: 1px solid #ddd;
  -webkit-border-radius: 4px;
     -moz-border-radius: 4px;
          border-radius: 4px;
}

/* Echo out a label for the example */
.bs-docs-example:after {
  content: "超级巡洋舰V1.0";
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  color: #9da0a4;
  -webkit-border-radius: 4px 0 4px 0;
     -moz-border-radius: 4px 0 4px 0;
          border-radius: 4px 0 4px 0;
}

	</style>
</head>
<body>
	<div class="span9">
		<form name="cruiserForm" id="cruiserForm" method="post" action="cruiseAction!DML.action">
			<div class="bs-docs-example">
				<div>
					<textarea name="sql" rows="10" class="span8" style="width: 815px; height: 195px;">${sql}</textarea>
				</div>
				<div class="well controls">
					<button id="search" class="btn btn-primary"> <i class="icon-search icon-white"></i> Execute</button>
				</div>
			</div>
		</form>
		<jsp:include page="framework/alert.jsp"/>
		<table id="listTable" class="table table-bordered table-condensed table-hover table-striped">
			<thead>
				<tr>
					<th>
						No.
					</th>
					<c:forEach items="${list[0]}" var="entity">
						<th>
							${entity.key}
						</th>
					</c:forEach>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${list}" var="map" varStatus="index">
					<tr>
						<td>
							${index.index+1}
						</td>
						<c:forEach items="${map}" var="entity">
							<td>
								${entity.value}
							</td>
						</c:forEach>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</body>
<script>
</script>
</html>